Skip to content

ci(publish): tag latest only for the highest version#255

Merged
arnaugiralt merged 1 commit into
masterfrom
chore/docker-latest-always
Jul 21, 2026
Merged

ci(publish): tag latest only for the highest version#255
arnaugiralt merged 1 commit into
masterfrom
chore/docker-latest-always

Conversation

@pcaro

@pcaro pcaro commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

What

Reworks how the latest label is applied when publishing a release:

  • Drops the cnctver step that only tagged the Docker image as latest when the CLI tag major matched the platform's Connect-Version header. CLI majors no longer track the platform (platform is at 43, CLI at 40.x), so latest has been frozen since the last coinciding release.
  • Applies latest (Docker tag and GitHub release makeLatest) only when the pushed tag is the highest version in the repo (git tag | sort -V).

Why

We want latest to always point to the newest major release, while keeping the door open for security backports on older majors: releasing e.g. 39.8 after 41.0 will publish 39.8 and retag 39, but will not steal latest.

PyPI needs no change — pip always resolves the highest version.

🤖 Generated with Claude Code

Drop the cnctver step that gated the docker 'latest' tag on the
CLI major matching the platform's Connect-Version header — CLI
majors no longer track the platform, so 'latest' was frozen at the
last coinciding release. Instead, apply 'latest' (docker tag and
GitHub release) only when the pushed tag is the highest version in
the repo, so a security backport like 39.8 never steals 'latest'
from a newer major.
@pcaro
pcaro requested a review from arnaugiralt July 21, 2026 15:33
@pcaro
pcaro marked this pull request as ready for review July 21, 2026 15:34
@arnaugiralt
arnaugiralt merged commit e75d19f into master Jul 21, 2026
5 of 10 checks passed
@arnaugiralt
arnaugiralt deleted the chore/docker-latest-always branch July 21, 2026 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants